Support a canContinue function, fixes #1