Add errors logging