Moved server to separate class.