Helpers in server.js