Is the PinTo function itself in your logon script?

Please provide your code.