Updated Main to go back and forth.