Added extend hit function