Code in http://cyanbyfuchsia.wordpress.com/ blog