Server code for eVaidya