Generation and detection methods