More working on getattachments