All logic except DataSource is written.