Fully implemented render extraction. Async version does not work properly yet.