Changed to create a new data store through recursive calls and a page counter