Maximum attachments implementation