Generalisation improvements to RA script & first alpha version of advancedFilter.