Added validator and copy algorithm