Modified version of generator-rff