Added additional cap debugging.