Debug prints and flags