Added continuous pattern detection