Added idle functionality. Now goes idle when no package has been received for an amount of time.