Smarty Hooks system