Added logic to make sure values are numbers or 0 and up