Adds periodic ping to the main task.
