Quick lithium filtering implemetation to allow custom processing.