[Engine] Added debug functions.