Added chmod lib