Added faster exponentation.