Using 'data' listener only. Added error listener.