Made both network definition and call definition to be user input.