Rewrote Float16 code