Layout and rerouting