* added parameters validation.