Added a way to run callback functions for various autogenerated targets.