added more functionality for the matched filter.