More Erlang like version