LASTMESSAGE AND PRECOMMIT