Added legal arguments check