How to perform allocations