Adding run_server method