Got it to work with negative numbers.