Dump of andrew's code