Don't know what i'm doing
Added debug flag