Initial definition of cpu functions