Adopted for ITKv4