Make sure functions only fire once