Add supports for custom parameters when using #find.

Needed for #65.

That's 52 lines of boring diff.