Created new debug=only option and modified overlap code