Added RegisterForUpdate API that registers a function to be called each frame