A nala implementation written in genie.