Intermediate version - trying to remove duplication from getMedia* methods.