Fixed the username substitution.
Allowed options to be specified in a configuration file.