Added class helper for easy class detection.