Shift code sections correctly