The receive function now gets the sender as parameter too.