Add subscription option to the sample.