Adding a docstring to Terminate function