Passed the ActorRef to the messageProcessing function