Updating for compatibility with VTK6.