Added profile register and changed other stuffs