more computable script. It works well on laptop. Need to run on server.