This hopefully prevents random freezes