Issue #2: the departure function modified. Pending tests and documentation.