Beginning of random write implementation.