Working on configuration function