Fixed external callback sample