Added settings functionality