Stuff that needs to be addressed after the code developed for OHBM23. If the function m is peak_amplitude or peak_distance, you should first run peak_detection and then pass the output of peak_detection to the latter.