Deprecated use of attr, fixes #17.