Add linear model for detection