REMOVE OLD UGLY STUPID ERLANG CODE