Refactor tuner into its own class.