Streamlining to improve playback and indexing.

Also allows for looped playback.

Beginning of "state machine" (for play, stop, pause, etc.).