MALI Platform rewrite by AndreLux