Added Mangal registration and localization detection