Working on the code for processing the code given from the server