Fixed syntax error and did a much smarter job of displaying debugging data.