Code amended for checks.