Add better hooks for casting.