Allow for more robust method chaining. Fixes #23