Updated filter function for 100% accuracy, added new filter table.