Use resolve instead of accept as variable name. Also use value more consistently. Do not return a future early.