Helpers for easier implementation of actors in Elixir