Made sending methods synchronized in order to prevent concurrent manipulation of objects