Moved debugging statements to an inline alias function for cleaner code.