Add function register/unregister queries.