Now also works on MT 5 (tested on 5.2.6)