Implement filtering and start cleanup.