Change to Gravity Forms function to only fire when needed