Removed unused auxiliary function