Updates to permission check