Added function support in ABM growing code