Algorithm 32 | Scientific Reports