Added gen_server behavior.