Adding detectors and implementing init command.