Use :erlang.make_fun instead of deprecated Module.function