Commit before class