Added the harder part of repositioning.