Restructuring a bit and added the retarget script.