Alright, I got it working by changing adding "DEFINE OSC 4." So it works fine now. However, when I tried the original program there is still a pause. When I turn the pin off there is no pause, only when I turn it on is there a pause. Also, when I leave the pin on but reset the PIC it recognizes it immediately.

I am almost positive it has something to do with my input. I am using a serial port (with RTS as the input) and when the RTS is off it says that it is -10 volts. Should I put a diode there or something? I really have no idea how this works, so even a little help understanding this would be greatly appreciated.

-Mike