Extracted filtering and impact statistics code into a static library. Abstracted the impact response behavior