Add new attribute inference

Fixes #12