AndyB Attachment check v1.7 https://thejavasea.com/resources/andyb-attachment-check.27/