RG-141 Fixed allocation algorithm for batch calculations
Merge pull request #79 from Edzelopez/RG-141

RG-141 Fixed allocation algorithm for batch calculations