Extracted out _preProcess()