An emergency plan was in place to manage unexpected surges in crowd size during the Maha Kumbh.