Some algorithm code.