Reset filter delta to 0.5 and clean up code