Implement Lwt wrapper.