Made allocation system more efficient