Added more context variable to track shortestPath function
Fixed issue about out*() functions