Some assembly/c scaffolding code for later