Full functionality in GenerateInput function