Configuration logic

Separating the hard coded configuration parameters from the rest of the application logic.