by slashrsm: Add validation.