Error with %d, didn't support negative numbers until now