Working on alloc flow functions