Commenting out unnecessary onCancel function.