Changed messages to record syntax