Remove obsolete code.
Rename MIN register to avoid naming conflict.