Added debug for base and custom mode