Adding a filter to measure the time