Improves class comparison