Automatic over-the-air for cellular devices not working for 3G electron

I have tracked this down somewhat more. I found that this problem only happens when my code contains functions. For example:

if (pump1 == true){
        pump1timer();
}

if I comment out all functions throughout my code the problem goes away, and my OTA updates work again as normal. Also note, this program was running the same code with OTA updates and the same code previous to the cellular update changes