Fill pattern input if provided.

Fixes #34.