Mike's solution with ap10 path_contr