Updated app.lua