Reworked arm reset.

Hopefully it works now.