Write tables and stock