Fixes for SGE: making memory consumable, setting correct number of slots