Was AEG Earth's first genetic material?

Before DNA became Earth's primary genetic material, early forms of life are believed to have used RNA to encode genetic instructions. But what was doing the job before RNA came on the scene?