Fixed produces/requires. Added better logging.