Added chmod for file permissions.