Cleaned up respond function script_out