Added commented out testing code and finished the CheckMedia functionality.