Added generic gen_server functions, closes #32