Adding xctool hook