Added a timeout to prevent resizeBoxes from firing a billion times