Stop program crashing after an illegal argument is passed. It doesn't check properly for arguments though.