Algorithm 25 | Scientific Reports