Use find function (thanks to John Myles White).