Improvements to commit