Implementation of traits::RegisterCallback()
Added callback support for program:Build()