@ctweney use_pooled_connection block, probably around the entire warm function would save a lot of hassle.