Add a ReadAhead method
Fix compilation