Added FindPattern.

Minor bug fixes.