Documenting run function