Added functions, rotated through which target was optimized first