Added dependencies. Sorting teams position.