Adding setup for dynamic halo depth