Moved check to class.