Implemet initial command handling