2 important points before you change core code:
1. I suggest to extend class rather than change it. This will prevent issues with future upgrades.
2. If you think this is missing or important feature, you can suggest it for us to develop, or even better, you can develop it and suggest for us to add it to the core.