Proof of concept code for SLOCA