Added basic extend functionality