Added motion metric async task. A bit buggy