Added extend functionality