Changed readLocal to accept a function to run o completion