FUNCT template for erlang gen_servers