Modified the MainActivity and Config.