Add static index dispatching