Added registration backround code