Added error logging module