Commit from class