Erlang port of dtex/spas