Fixing the up_hook script some.