Correct use of resumeAfter() as suggested by dvander