Added error checking to evalTup