Add Ignore File Type
Fixed a bug when use averaged option
Fixed a bug when use averaged option. Thanks for Michielse Stijn