Update class methods to chaining methods.