Modified runServer to take an argument