Code moving and layouting