Added some priliminary filtration code.