Add configuration option for specifying custom attributes

Resolves #10