Added chmod part