Now produces working code - does not send it to minecraft