Added runtime persistenttable type selection