Added affinity stuff to process_init()