Simplify script and improve performance