Added chmod and exists commands