Algorithm 8 | Scientific Reports