Add interface to attach selector and to specify command type.