Changes for package allocation