Added file extension filtering.