Added give up function