Added a method that takes in attachments