Added timer, still segfault in dequeue