Commit using template