Start to translate http://bluishcoder.co.nz/2010/06/20/closures-in-ats.html