Cleaned up alljobs script - it needs testing still.