Modifying add frame operator's poll function, and register/unregister functions.