Changed the way the express server is created