Added min and max and timeouts