Implemented logic for changing of max queries in settings