Added an is_active() helper function.
Fixed source_id usage.