Adding settings code.