Abstract messages away with the help of functions dealing with receiving and sending them