Prototype codes working