Changed mode to 777