Added framework to call renderer methods in render.lua.