Thank you, ybobjoe! That worked perfectly!

I'll definitely look into MediaTracker.