Callbacks for floatStart and floatEnd