Converted from Erlang to LFE.