Added source code functionality for various samples.