Modified error messages to use slf4j.