Fixed read line with one pop only. Need to add SDs and test it.