Added options to customize the behaviour when no matches are found #229