Fix for #110
Fix incorrect variable reference
Limit status output lengths
Add potential performance enhancement