Functions added to server.py