(1) If, after reviewing the operation of any requirements contained in the code of practice and any agreements under section 102, it appears to the Secretary of State that it is necessary to do so, he may by order made by statutory instrument authorise the giving of directions under this section for purposes prescribed in section 102(3).
(2) Where any order under this section is in force, the Secretary of State may give such directions as he considers appropriate about the retention of communications data-
(a) to communications providers generally;
(b) to communications providers of a description specified in the direction; or
(c) to any particular communications providers or provider.
(3) An order under this section must specify the maximum period for which a communications provider may be required to retain communications data by any direction given under this section while the order is in force.
(4) Before giving a direction under this section the Secretary of State shall consu