Resolved some errors... Moved the readupdates function.