Added unity debug functions.