Planning routing code