Commit curent state