Added working setResigter function and removing fake getstats