Added junkey code for profiling demos.