Algorithm 17 | Scientific Reports