Reordered some code in the rain bucket listener.