Moved addition and multiply to extension module.