Fix loip function and provide the source