Added initial flow logic.