Kyle,
Students get off task for a lot of different reasons. Something I do is when I sense some are fading away, I'll interject a story or situation from the past that's related to the field of study. Students nearly always perk up, listen, and then I'm ready to resume where I left off.
Barry Westling