Add debug flag for debugging https