function get_pulse_summary()
{
    session_write_close();
    $otx = new Otx();
    //This exception is an special exception to handle when OTX is not registered.
    try {
        $stats = $otx->get_pulse_stats();
    } catch (Exception $e) {
        if (preg_match('/OTX is not activated/', $e->getMessage())) {
            Util::response_bad_request('OTX_NOT_ACTIVE');
        } else {
            Util::response_bad_request($e->getMessage());
        }
    }
    return $stats;
}