Added detection for negative numbers!