Added as_string method.