Adds temporary debug messages.

Debug errors which happens randomly. Should ne reverted once errors are fixed