Added code for adding OSD and refactored the code to use single config file