Marta's pull request

Medians, longer time