Implement print tasks method for debugging