made a quick test program, it works :D