Split analyses into separate functions