Added argument functionality to the main