Updates issue #3
Use appropriate min/max calls.
Need to add tests.

Signed-off-by: Shawn Laffan <shawnlaffan@gmail.com>