Expose the extend function