Added error message for negative values