Code now checks if task complies with method