Extra erlang utitlities