Algorithm 18 | Scientific Reports