Adding Extend functionality.