Return 0 for failed callbacks
Moved media function into new object level