Move code into scratch buffer.