Prepare for commit