Added support for 2nd line status polling, minor tweaks.