Switched strings to use format interpolation and better error msgs.