Adding code for continuous expansion of islands. Adding some code to contract