Make tasklist a separate type