Simplified the code & changed the ignored_class to camel case