Added  restriction from allowing drains or generators of less than or equal to 0, will make them equal 1