Added smooth hook motion primitives and added path spacing parameter