Adjusted for Akka 2.2.1 Agent API.