Merge "Improve the comments of getMedium." into tm-dev