Updated code to implement the x86 function hooks (Issue #23)