Resolved printing error in RepeatingTask