Added config files and some input handling.