Made reactor a gen_server