Algorithm 9 | Scientific Reports