Extracted checks to class, and script provider to interface.