Added new functions to the CPU and implemented some more.