Use atoms to keep track of the current process and thread