Optimized object manager handling in Main.pm.