Added parameter to readLocal