Fixing #345 and making isActive method public.