Better path genration.