Support shared evaluation.

Closes #16.