Made it possible to configure search and print patterns from command line