Replaced array list usage with garray (more sophisticated).