Update lastCommited variable