Add updating of command and hash