Auxiliary function for reverse print