Converting lua script to multi/exec block.