Added argument validation.