Use ints instead of longs for taskIds