Added grant access function