Removed constructor set from extend function, since this is not needed.