Added negative numbers support.