Add callback on track function