Dispatcher module with Erlang