Enabled modals to return multiple values to the promise.

Fixes #86