Move the function evaluation into the calling function, rather than the gen_server process.