Debug code broke script