Updated to commit on each message