Implemented commit checkout