Added replicateF