Fixing odd high low values.

Possibly a memory issue.
Cleanup of code to save memory.