Added CLI and Replica classes