Implemented dynamic permissions