Created MapToAttribute functionality