The five special function areas were ( 1 ) law enforcement and internal security , ( 2 ) intelligence , ( 3 ) foreign affairs , ( 4 ) national defense , and ( 5 ) research and development .
There were five special function areas .