Extremely messy first proof of concept.