Made a modification to make setting worked