Added formicarium logic