Made some progress on the logger though still getting an error.