Check for debug flag