Added scope and maxint settings