Now using errors instead of log statements.