Finally got the attachment working