Moved server functions to ConnectionManager