Using ReadFile now, simplifies the code