Added Hook and Plugin Functionality