ReadByName functions fixed