Optimized script
Changed rendering logic
Changed rendering script