Added licenses and memory constrained setting

NUM_PAGES > 1 does not work yet.