Added media funciton