Added checks for arguments to bin script.