Adding GETS function