Updated to work with VTK6.0