Input Optimization and StopOnTarget for Movewhileblabla