Added in a debugLog function which means we don't have to instanciate  every time we want to log a message