Optimized lwt version