More erlang scripts