Deadline is now by main thread instead because of KATTIS problems.