Updating conditional for attachment logic