Create and remove joints dynamically