Assorted code bits for Lua and Löve