Added task ordering by weight hopefully