Increased effeciency

While statement instead of for statement. Increments by the length of the extension if nothing is found. This cuts down the time it takes to search for the extensions by 75%.