Added a function to accept the user input from the configuration file.