Added arm reset code