Updated Render Tick to be more flexible