Commiting a chunk of code