Changing the addClass to correspond to other runtimes, requiring the types as well.