More strictmode stuff when debug flag is on