A working generator for gems