Added object argument validation.