Added flag for debug option