A lame atempt to write the SRFS generator. It still needs lots of improvement, but the main idea is writen there.