Add interface to set floating mode