Overcoming some drawbacks of Dynamic Movement Primitives