Move the ping task to its own file