Prototype of square stick adjustment code.