It was all an elaborate police operation.