Added fail safe macro's for debugging purposes.