Actually, I don't think this function is necessary, I would just inline it as it was, but that' up to you...