Added implementation for stop conditions and path generators