Algorithm 37 | Scientific Reports