Adds more logging