Is this code OK?