Chaged the Clock object to define RefID programatically