Adding support for checking extensions.