Feel free to use this code. If you decide to use it please cite in your work:
Dymerska, Barbara, et al. "The impact of echo time shifts and temporal signal fluctuations on BOLD sensitivity in presurgical planning at 7 T." Investigative Radiology 54.6 (2019): 340-348.