Adds more logging, fixes typo