Add median task