Added function to app.listen