Added lines for requesting permissions