Added a few more log functions for errors.