Added options argument for passing in arbitrary data for use in custom attributes