Fixed the flashing bug during routine transitions.  Also added some
logging and routine ids.