Improved the execute utility functions.