Added chmod as suggested