Don't store default rate as None and explicitly use int