Added string formatting for output.