Cleaning up Erlang