Added logging of error.
Added logging of error.
Fixed issue.
Got rid of unneeded line.