Optimizing extension checking
Merge pull request #3 from davbaumgartner/master

Optimizing extension checking