Proof of concept code.