Resolved Issue #7

Issue was caused by the max going to a negative value.