Cleaned up Attachment model method.