Complete the implementation of the registering shake motions