(GX) Input - properly implement free function