Hook function type defined. So the last step is to add stack record, and make it work.