FIX: Possible integer overflow/underflow issues with max template.
CODE: Remove redundant code.