Server side code for project