Support for invariant methods

Fixes #1