Updated settings and optimized script output