Adding Erlang implementation