Checking length and then receiving remaining parts