Switched to using JSON when returning 'ok' messages.