Added repo operations. Added ability to preserve keys.