Changed find to use regex and added smoothing option