More updates to extension loading and function/event provision.