Added getter and setter for attachments.
API changes.