Changing the method for chaining