Added persmission check v2