Added negative number check