check for sub first @GLitchfield - is this correct?