Updated for awesome 3.5 and Lua 5.2