Trying to better optimize the programmer calculator