Add replicate method.