Added Contao 3 compatibility