Implemented the manual selection of peak and background.