In the case of the reaction below, I would like a final product with ring-opened form of the spirolactam (for fluorescence-ON) but with another moiety being attached to the NH2 (via nucleophilic addition with ketones/aldehydes/2-chloropyridine for instance). However, which one should comes first? The ring opening via acidification or nucleophilic addition.