Write out final weights