Generate problems

Feature fully added. Ready to merge with master branch.