Reduced the number of calls to getVolptr()