Class template for replication and task manager