Added Maxpoinst and atoi