Add ability to check permissions as per @hawkfalcon's recommendation.