Serial Transmition Stopping?

  while( Serial.available() == 0);

The above code has you sit in a loop doing nothing until something comes in on serial.

Mark