Implemented utilities for making permission check simple.