Tweaked misdirect function