Refactor to be similar to the Erlang ALE style