Early returns

Fixes #36.