Template interface is working now but the math is off someplace and I just don't have it in me to find the error right now. #350