Cleaned up commit code