Revised extension instantiation, now 'hooks' are installed which are cleaner and more flexible