Fixed the ordering of parameters to match Erlang macros.