Change way of getting parameters of script