New generator function. Added names generator. Works quickly.