Adding last screen function to Lua API.