Added manish's server side code