Trail termination functions