updated peak finding and background searching, but background searching crashes.