Reuse the current pattern as default on 'resetPattern ' call

Make optional the pattern during the call of 'resetPattern'.