More reliable handler for autoskeleton, I think. Let me know if there are bugs.