First stage at implementing read function, nothing to speak of yet.