REPLICATE implemented, untested