Changed to callback with -1 if no media found