I didn't like setting APPEND_SLASH to false.  Changing it back.
Threshold optimization