added getAccessList function.