Add setAttachment ability