Added RefUp/RefDown handlers.