Added replicate option