Addressing most of Oscar's comments; todo getLoopInputs