Added error logging functionality