Here's something I wrote that does exactly that - just put an ACLS above this [it didn't fit in the screenshot].