Added support for 2nd line status polling. Minor tweaks.