Added conditional to prevent more than one init of raty