Added support for thresholds and colored client output