Updated to use /tmp and changed a few things