Added basic generation functionality.