Added newLines array back. Cleaned up globals, and unused'