Made message fields private
Changed synchronization object in send