Moved problem definition to a record.