Added MT support for WAL