Updated coroutine memory handling again