Rewrote floating frame method to be more efficient and less verbose