Added function to_s to code.