Code I've written for research.