Change how pathAction is assigned.