Added support for executable permissions.