Clean up & remove compiler warning. Move Config in Core and add error function.