Example code from personal work.