Remove check to see if element is a class since no longer necessary.