Added in motion finished code

Signed-off-by: Andoni Aguirrezabal <aaguirrezabal@live.com>