Changed ignored_class key to ignoredClass to respect the other variable cs
Simplified the code