Extracts reading functions out