Added Pattern Recognition