Changed dispatch.py to use cpu