5An officer shall perform functions conferred on him by virtue of this Act in accordance with any relevant code of practice in operation under paragraph 6.