Move historical data pull to viewmodel/dynamics