Q interfacing with Erlang