Added factorial generator