Update erlang plugin to match new architecture