Workaround for not being able to pass MediaCloud object to thread.