Made the processor generating code more dynamic