Trying to get pre_hook working