Improved profile hook execution