Algorithm 34 | Scientific Reports