Algorithm 10 | Scientific Reports