Copying chunks of code to roughtly where they should end up