Read function without classes