Added is_active method