Added command line parameters to call the functions according to the purpose