Fix potential NumberFormatException
Update to reset method signature
Handle resize in new reset command