added queued Command function

also change movementflags var name