Added runtime datastore and index function. Started build function