Switch from using getPos and getSize to output