Misc optim (ptr instead of pos and inline for get/setters)