Updated Render Loop