Added functions to handle all server calls