Changing writeobject to writeverbose wherever necessary