Changed the way to request for permission