Added a bunch of logging asdkjasdflkaf