Refactored to using actor pattern instead of RPC. Mailbox abstraction added.