A method for executing a command by a swallowable in-vivo device (100, 800), the method comprising: in a swallowable in-vivo device (100, 800) moving relative to a non-stationary three-dimensional reference frame and comprising a movement sensor (400, 828) configured to output movement signals having temporal and/or spectral characteristics, performing, spectrally analyzing, by a controller (490, 818, 1007) of the swallowable in-vivo device (100, 800), a movement signal outputted from the movement sensor vis-a-vis spectral characteristics of predefined fiducial command-invoking movements stored in a memory (492, 822) of the swallowable in-vivo device (100, 800) to detect a potential command-invoking movement that is associated with a command; characterized in that the method further comprises: temporally analyzing, by the controller (490, 818, 1007) of the swallowable in-vivo device (100, 800), the potential command-invoking movement vis-a-vis temporal characteristics of predefined interference movements stored in the memory (492, 822) of the swallowable in-vivo device (100, 800) to classify the potential command-invoking movement as a command-invoking movement or as an interference movement; executing, by the controller (490, 818, 1007) of the swallowable in-vivo device (100, 800), the command if the potential command-invoking movement is classified as a command-invoking movement, and refraining from executing the command if the potential command-invoking movement is classified as an interference movement. in a swallowable in-vivo device (100, 800) moving relative to a non-stationary three-dimensional reference frame and comprising a movement sensor (400, 828) configured to output movement signals having temporal and/or spectral characteristics, performing, spectrally analyzing, by a controller (490, 818, 1007) of the swallowable in-vivo device (100, 800), a movement signal outputted from the movement sensor vis-a-vis spectral characteristics of predefined fiducial command-invoking movements stored in a memory (492, 822) of the swallowable in-vivo device (100, 800) to detect a potential command-invoking movement that is associated with a command; characterized in that the method further comprises: temporally analyzing, by the controller (490, 818, 1007) of the swallowable in-vivo device (100, 800), the potential command-invoking movement vis-a-vis temporal characteristics of predefined interference movements stored in the memory (492, 822) of the swallowable in-vivo device (100, 800) to classify the potential command-invoking movement as a command-invoking movement or as an interference movement; executing, by the controller (490, 818, 1007) of the swallowable in-vivo device (100, 800), the command if the potential command-invoking movement is classified as a command-invoking movement, and refraining from executing the command if the potential command-invoking movement is classified as an interference movement. temporally analyzing, by the controller (490, 818, 1007) of the swallowable in-vivo device (100, 800), the potential command-invoking movement vis-a-vis temporal characteristics of predefined interference movements stored in the memory (492, 822) of the swallowable in-vivo device (100, 800) to classify the potential command-invoking movement as a command-invoking movement or as an interference movement; executing, by the controller (490, 818, 1007) of the swallowable in-vivo device (100, 800), the command if the potential command-invoking movement is classified as a command-invoking movement, and refraining from executing the command if the potential command-invoking movement is classified as an interference movement.