Added generation from a directory