Create a separate "runRender" function