Server side for CS4274 project.