Added support for level 39 and 40