Added two cases in doIt method.