Modularized balance/hover code