Rewrite Myra.lua (using tables, shorter script)