Revamp compare function to use new info, warn, error