Fixed not adding time bug
Added global DEBUG_LEVEL