Used scala actor to send / receive messages.