Creating dual ways to running script