Added serial input capabilities.