Added check to make sure that initial parameter is within allowed parameter range (otherwise it is reset to the lower boundary)