Improve function of update-acl