Removed borrowed code.