Final version of no peak detector model