Added read name function