Added diary and costume protocols.