Checked connection is active within readCallBack
Added timeout to polling
Removed unecessary dereference