Pass `frame` to `createHandler`.

Pass `frame` to `createHandler` so that it can be called when the frame
stack changes. We're going to need to add callback to prevent a gathered
loop from returning before we set the callback to the gathered results.

Closes #186.