Add callback for compile action