Moved maxRamSizeInBytes and maxTotalWeight params at the end to resolve a conflict.