Add callback to routes