Outsourced hard coded values to configuration file, but there is  serious performance decrease.