Minor refactoring. Default input pattern added.