Almost finish the register path, but the sign function is broken somehow...