Periodic task executes as per input