Removed unneeded code from settings