Can now sort of generate code for write statements.