Added control if the class already exists before declaring it.