Improving error messages and engine to strings