Added permission parameter in context manager