Added ordermode and ordercount