Added the Server Side Handling Code