Update error logger, update some functions to use parameters.