Adding resource spec.