Improved test program and added global SDPoint Var