Added toggle logic for services.