Erlang interface for piface