Add check for negative numbers