Implement replicate logic
Add build tooling