Better error checking in brewing logic.