Added supercomplicated code to do what a mere find can do.