Pickle doc and q