Added opt server side code